package com.hutao.medical.pojo.print;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PrintDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PrintDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPrintIdIsNull() {
            addCriterion("print_id is null");
            return (Criteria) this;
        }

        public Criteria andPrintIdIsNotNull() {
            addCriterion("print_id is not null");
            return (Criteria) this;
        }

        public Criteria andPrintIdEqualTo(Integer value) {
            addCriterion("print_id =", value, "printId");
            return (Criteria) this;
        }

        public Criteria andPrintIdNotEqualTo(Integer value) {
            addCriterion("print_id <>", value, "printId");
            return (Criteria) this;
        }

        public Criteria andPrintIdGreaterThan(Integer value) {
            addCriterion("print_id >", value, "printId");
            return (Criteria) this;
        }

        public Criteria andPrintIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("print_id >=", value, "printId");
            return (Criteria) this;
        }

        public Criteria andPrintIdLessThan(Integer value) {
            addCriterion("print_id <", value, "printId");
            return (Criteria) this;
        }

        public Criteria andPrintIdLessThanOrEqualTo(Integer value) {
            addCriterion("print_id <=", value, "printId");
            return (Criteria) this;
        }

        public Criteria andPrintIdIn(List<Integer> values) {
            addCriterion("print_id in", values, "printId");
            return (Criteria) this;
        }

        public Criteria andPrintIdNotIn(List<Integer> values) {
            addCriterion("print_id not in", values, "printId");
            return (Criteria) this;
        }

        public Criteria andPrintIdBetween(Integer value1, Integer value2) {
            addCriterion("print_id between", value1, value2, "printId");
            return (Criteria) this;
        }

        public Criteria andPrintIdNotBetween(Integer value1, Integer value2) {
            addCriterion("print_id not between", value1, value2, "printId");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationIsNull() {
            addCriterion("print_pagination is null");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationIsNotNull() {
            addCriterion("print_pagination is not null");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationEqualTo(Integer value) {
            addCriterion("print_pagination =", value, "printPagination");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationNotEqualTo(Integer value) {
            addCriterion("print_pagination <>", value, "printPagination");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationGreaterThan(Integer value) {
            addCriterion("print_pagination >", value, "printPagination");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationGreaterThanOrEqualTo(Integer value) {
            addCriterion("print_pagination >=", value, "printPagination");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationLessThan(Integer value) {
            addCriterion("print_pagination <", value, "printPagination");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationLessThanOrEqualTo(Integer value) {
            addCriterion("print_pagination <=", value, "printPagination");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationIn(List<Integer> values) {
            addCriterion("print_pagination in", values, "printPagination");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationNotIn(List<Integer> values) {
            addCriterion("print_pagination not in", values, "printPagination");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationBetween(Integer value1, Integer value2) {
            addCriterion("print_pagination between", value1, value2, "printPagination");
            return (Criteria) this;
        }

        public Criteria andPrintPaginationNotBetween(Integer value1, Integer value2) {
            addCriterion("print_pagination not between", value1, value2, "printPagination");
            return (Criteria) this;
        }

        public Criteria andPrintStatusIsNull() {
            addCriterion("print_status is null");
            return (Criteria) this;
        }

        public Criteria andPrintStatusIsNotNull() {
            addCriterion("print_status is not null");
            return (Criteria) this;
        }

        public Criteria andPrintStatusEqualTo(Integer value) {
            addCriterion("print_status =", value, "printStatus");
            return (Criteria) this;
        }

        public Criteria andPrintStatusNotEqualTo(Integer value) {
            addCriterion("print_status <>", value, "printStatus");
            return (Criteria) this;
        }

        public Criteria andPrintStatusGreaterThan(Integer value) {
            addCriterion("print_status >", value, "printStatus");
            return (Criteria) this;
        }

        public Criteria andPrintStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("print_status >=", value, "printStatus");
            return (Criteria) this;
        }

        public Criteria andPrintStatusLessThan(Integer value) {
            addCriterion("print_status <", value, "printStatus");
            return (Criteria) this;
        }

        public Criteria andPrintStatusLessThanOrEqualTo(Integer value) {
            addCriterion("print_status <=", value, "printStatus");
            return (Criteria) this;
        }

        public Criteria andPrintStatusIn(List<Integer> values) {
            addCriterion("print_status in", values, "printStatus");
            return (Criteria) this;
        }

        public Criteria andPrintStatusNotIn(List<Integer> values) {
            addCriterion("print_status not in", values, "printStatus");
            return (Criteria) this;
        }

        public Criteria andPrintStatusBetween(Integer value1, Integer value2) {
            addCriterion("print_status between", value1, value2, "printStatus");
            return (Criteria) this;
        }

        public Criteria andPrintStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("print_status not between", value1, value2, "printStatus");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordIsNull() {
            addCriterion("medical_record is null");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordIsNotNull() {
            addCriterion("medical_record is not null");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordEqualTo(String value) {
            addCriterion("medical_record =", value, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordNotEqualTo(String value) {
            addCriterion("medical_record <>", value, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordGreaterThan(String value) {
            addCriterion("medical_record >", value, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordGreaterThanOrEqualTo(String value) {
            addCriterion("medical_record >=", value, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordLessThan(String value) {
            addCriterion("medical_record <", value, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordLessThanOrEqualTo(String value) {
            addCriterion("medical_record <=", value, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordLike(String value) {
            addCriterion("medical_record like", value, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordNotLike(String value) {
            addCriterion("medical_record not like", value, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordIn(List<String> values) {
            addCriterion("medical_record in", values, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordNotIn(List<String> values) {
            addCriterion("medical_record not in", values, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordBetween(String value1, String value2) {
            addCriterion("medical_record between", value1, value2, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andMedicalRecordNotBetween(String value1, String value2) {
            addCriterion("medical_record not between", value1, value2, "medicalRecord");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesIsNull() {
            addCriterion("print_copies is null");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesIsNotNull() {
            addCriterion("print_copies is not null");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesEqualTo(Integer value) {
            addCriterion("print_copies =", value, "printCopies");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesNotEqualTo(Integer value) {
            addCriterion("print_copies <>", value, "printCopies");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesGreaterThan(Integer value) {
            addCriterion("print_copies >", value, "printCopies");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesGreaterThanOrEqualTo(Integer value) {
            addCriterion("print_copies >=", value, "printCopies");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesLessThan(Integer value) {
            addCriterion("print_copies <", value, "printCopies");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesLessThanOrEqualTo(Integer value) {
            addCriterion("print_copies <=", value, "printCopies");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesIn(List<Integer> values) {
            addCriterion("print_copies in", values, "printCopies");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesNotIn(List<Integer> values) {
            addCriterion("print_copies not in", values, "printCopies");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesBetween(Integer value1, Integer value2) {
            addCriterion("print_copies between", value1, value2, "printCopies");
            return (Criteria) this;
        }

        public Criteria andPrintCopiesNotBetween(Integer value1, Integer value2) {
            addCriterion("print_copies not between", value1, value2, "printCopies");
            return (Criteria) this;
        }

        public Criteria andPrintTimeIsNull() {
            addCriterion("print_time is null");
            return (Criteria) this;
        }

        public Criteria andPrintTimeIsNotNull() {
            addCriterion("print_time is not null");
            return (Criteria) this;
        }

        public Criteria andPrintTimeEqualTo(Date value) {
            addCriterion("print_time =", value, "printTime");
            return (Criteria) this;
        }

        public Criteria andPrintTimeNotEqualTo(Date value) {
            addCriterion("print_time <>", value, "printTime");
            return (Criteria) this;
        }

        public Criteria andPrintTimeGreaterThan(Date value) {
            addCriterion("print_time >", value, "printTime");
            return (Criteria) this;
        }

        public Criteria andPrintTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("print_time >=", value, "printTime");
            return (Criteria) this;
        }

        public Criteria andPrintTimeLessThan(Date value) {
            addCriterion("print_time <", value, "printTime");
            return (Criteria) this;
        }

        public Criteria andPrintTimeLessThanOrEqualTo(Date value) {
            addCriterion("print_time <=", value, "printTime");
            return (Criteria) this;
        }

        public Criteria andPrintTimeIn(List<Date> values) {
            addCriterion("print_time in", values, "printTime");
            return (Criteria) this;
        }

        public Criteria andPrintTimeNotIn(List<Date> values) {
            addCriterion("print_time not in", values, "printTime");
            return (Criteria) this;
        }

        public Criteria andPrintTimeBetween(Date value1, Date value2) {
            addCriterion("print_time between", value1, value2, "printTime");
            return (Criteria) this;
        }

        public Criteria andPrintTimeNotBetween(Date value1, Date value2) {
            addCriterion("print_time not between", value1, value2, "printTime");
            return (Criteria) this;
        }

        public Criteria andCheckStatusIsNull() {
            addCriterion("check_status is null");
            return (Criteria) this;
        }

        public Criteria andCheckStatusIsNotNull() {
            addCriterion("check_status is not null");
            return (Criteria) this;
        }

        public Criteria andCheckStatusEqualTo(Integer value) {
            addCriterion("check_status =", value, "checkStatus");
            return (Criteria) this;
        }

        public Criteria andCheckStatusNotEqualTo(Integer value) {
            addCriterion("check_status <>", value, "checkStatus");
            return (Criteria) this;
        }

        public Criteria andCheckStatusGreaterThan(Integer value) {
            addCriterion("check_status >", value, "checkStatus");
            return (Criteria) this;
        }

        public Criteria andCheckStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("check_status >=", value, "checkStatus");
            return (Criteria) this;
        }

        public Criteria andCheckStatusLessThan(Integer value) {
            addCriterion("check_status <", value, "checkStatus");
            return (Criteria) this;
        }

        public Criteria andCheckStatusLessThanOrEqualTo(Integer value) {
            addCriterion("check_status <=", value, "checkStatus");
            return (Criteria) this;
        }

        public Criteria andCheckStatusIn(List<Integer> values) {
            addCriterion("check_status in", values, "checkStatus");
            return (Criteria) this;
        }

        public Criteria andCheckStatusNotIn(List<Integer> values) {
            addCriterion("check_status not in", values, "checkStatus");
            return (Criteria) this;
        }

        public Criteria andCheckStatusBetween(Integer value1, Integer value2) {
            addCriterion("check_status between", value1, value2, "checkStatus");
            return (Criteria) this;
        }

        public Criteria andCheckStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("check_status not between", value1, value2, "checkStatus");
            return (Criteria) this;
        }

        public Criteria andPatientNameIsNull() {
            addCriterion("patient_name is null");
            return (Criteria) this;
        }

        public Criteria andPatientNameIsNotNull() {
            addCriterion("patient_name is not null");
            return (Criteria) this;
        }

        public Criteria andPatientNameEqualTo(String value) {
            addCriterion("patient_name =", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotEqualTo(String value) {
            addCriterion("patient_name <>", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameGreaterThan(String value) {
            addCriterion("patient_name >", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameGreaterThanOrEqualTo(String value) {
            addCriterion("patient_name >=", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameLessThan(String value) {
            addCriterion("patient_name <", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameLessThanOrEqualTo(String value) {
            addCriterion("patient_name <=", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameLike(String value) {
            addCriterion("patient_name like", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotLike(String value) {
            addCriterion("patient_name not like", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameIn(List<String> values) {
            addCriterion("patient_name in", values, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotIn(List<String> values) {
            addCriterion("patient_name not in", values, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameBetween(String value1, String value2) {
            addCriterion("patient_name between", value1, value2, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotBetween(String value1, String value2) {
            addCriterion("patient_name not between", value1, value2, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientCardIsNull() {
            addCriterion("patient_card is null");
            return (Criteria) this;
        }

        public Criteria andPatientCardIsNotNull() {
            addCriterion("patient_card is not null");
            return (Criteria) this;
        }

        public Criteria andPatientCardEqualTo(String value) {
            addCriterion("patient_card =", value, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardNotEqualTo(String value) {
            addCriterion("patient_card <>", value, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardGreaterThan(String value) {
            addCriterion("patient_card >", value, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardGreaterThanOrEqualTo(String value) {
            addCriterion("patient_card >=", value, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardLessThan(String value) {
            addCriterion("patient_card <", value, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardLessThanOrEqualTo(String value) {
            addCriterion("patient_card <=", value, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardLike(String value) {
            addCriterion("patient_card like", value, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardNotLike(String value) {
            addCriterion("patient_card not like", value, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardIn(List<String> values) {
            addCriterion("patient_card in", values, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardNotIn(List<String> values) {
            addCriterion("patient_card not in", values, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardBetween(String value1, String value2) {
            addCriterion("patient_card between", value1, value2, "patientCard");
            return (Criteria) this;
        }

        public Criteria andPatientCardNotBetween(String value1, String value2) {
            addCriterion("patient_card not between", value1, value2, "patientCard");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdIsNull() {
            addCriterion("medical_only_id is null");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdIsNotNull() {
            addCriterion("medical_only_id is not null");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdEqualTo(String value) {
            addCriterion("medical_only_id =", value, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdNotEqualTo(String value) {
            addCriterion("medical_only_id <>", value, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdGreaterThan(String value) {
            addCriterion("medical_only_id >", value, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdGreaterThanOrEqualTo(String value) {
            addCriterion("medical_only_id >=", value, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdLessThan(String value) {
            addCriterion("medical_only_id <", value, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdLessThanOrEqualTo(String value) {
            addCriterion("medical_only_id <=", value, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdLike(String value) {
            addCriterion("medical_only_id like", value, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdNotLike(String value) {
            addCriterion("medical_only_id not like", value, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdIn(List<String> values) {
            addCriterion("medical_only_id in", values, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdNotIn(List<String> values) {
            addCriterion("medical_only_id not in", values, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdBetween(String value1, String value2) {
            addCriterion("medical_only_id between", value1, value2, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andMedicalOnlyIdNotBetween(String value1, String value2) {
            addCriterion("medical_only_id not between", value1, value2, "medicalOnlyId");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageIsNull() {
            addCriterion("pre_print_page is null");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageIsNotNull() {
            addCriterion("pre_print_page is not null");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageEqualTo(Integer value) {
            addCriterion("pre_print_page =", value, "prePrintPage");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageNotEqualTo(Integer value) {
            addCriterion("pre_print_page <>", value, "prePrintPage");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageGreaterThan(Integer value) {
            addCriterion("pre_print_page >", value, "prePrintPage");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageGreaterThanOrEqualTo(Integer value) {
            addCriterion("pre_print_page >=", value, "prePrintPage");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageLessThan(Integer value) {
            addCriterion("pre_print_page <", value, "prePrintPage");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageLessThanOrEqualTo(Integer value) {
            addCriterion("pre_print_page <=", value, "prePrintPage");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageIn(List<Integer> values) {
            addCriterion("pre_print_page in", values, "prePrintPage");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageNotIn(List<Integer> values) {
            addCriterion("pre_print_page not in", values, "prePrintPage");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageBetween(Integer value1, Integer value2) {
            addCriterion("pre_print_page between", value1, value2, "prePrintPage");
            return (Criteria) this;
        }

        public Criteria andPrePrintPageNotBetween(Integer value1, Integer value2) {
            addCriterion("pre_print_page not between", value1, value2, "prePrintPage");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("version is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("version is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(Integer value) {
            addCriterion("version =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(Integer value) {
            addCriterion("version <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(Integer value) {
            addCriterion("version >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
            addCriterion("version >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(Integer value) {
            addCriterion("version <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(Integer value) {
            addCriterion("version <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<Integer> values) {
            addCriterion("version in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<Integer> values) {
            addCriterion("version not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(Integer value1, Integer value2) {
            addCriterion("version between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(Integer value1, Integer value2) {
            addCriterion("version not between", value1, value2, "version");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}